﻿using System.Web.Mvc;
using System.Web.Routing;
using Nop.Web.Framework.Mvc.Routes;

namespace Nop.Plugin.Picture.CDN
{
    public partial class RouteProvider : IRouteProvider
    {
        public void RegisterRoutes(RouteCollection routes)
        {
            routes.MapRoute("Nop.Plugin.Picture.CDN.Configure", "Admin/Plugins/CDN/NopCDN/Configure", new
            {
                controller = "NopCDN",
                action = "Configure"
            }, new string[]
			{
				"Nop.Plugin.Picture.CDN.Controllers"
			}).DataTokens.Add("Area", "Admin");

            routes.MapRoute("Nop.Plugin.Picture.CDN.LicenseKey", "Admin/Plugins/CDN/NopCDN/License", new
            {
                controller = "NopCDN",
                action = "LicenseKey"
            }, new string[]
			{
				"Nop.Plugin.Picture.CDN.Controllers"
			}).DataTokens.Add("Area", "Admin");



            routes.MapRoute("Nop.Plugin.Picture.CDN.LoadDemoOver", "Admin/Plugins/CDN/NopCDN/LoadDemoOver", new
            {
                controller = "NopCDN",
                action = "DemoOver"
            }, new string[]
			{
				"Nop.Plugin.Picture.CDN.Controllers"
			});
            routes.MapRoute("Nop.Plugin.Picture.CDN.AccessDenied", "Admin/Plugins/CDN/NopCDN/AccessDenied", new
            {
                controller = "NopCDN",
                action = "AccessDenied"
            }, new string[]
			{
				"Nop.Plugin.Picture.CDN.Controllers"
			});
            routes.MapRoute("Nop.Plugin.Picture.CDN.LicenseKeyMissMatch", "Admin/Plugins/CDN/NopCDN/LicenseKeyMissMatch", new
            {
                controller = "NopCDN",
                action = "LicenseKeyMissMatch"
            }, new string[]
			{
				"Nop.Plugin.Picture.CDN.Controllers"
			});
        }
        public int Priority
        {
            get
            {
                return 0;
            }
        }
    }
}
